<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<ui:composition xmlns="http://www.w3.org/1999/xhtml"
				xmlns:ui="http://java.sun.com/jsf/facelets"
				xmlns:h="http://java.sun.com/jsf/html"
				xmlns:a4j="http://richfaces.org/a4j"
				xmlns:rich="http://richfaces.org/rich"
				xmlns:f="http://java.sun.com/jsf/core"
				xmlns:c="http://java.sun.com/jstl/core"
				xmlns:t="http://myfaces.apache.org/tomahawk"
				template="/pages/crud_template.xhtml"> 

	<ui:param name="crudBean" value="#{usuarioBean}" />
	
	<ui:define name="requiredFieldsMessage">
		<h:outputText value="#{bundle.todosCamposObrigatorios}"/>
	</ui:define>
	
	<ui:define name="buttonItens">
		<h:panelGroup>
			<a4j:commandButton value="#{bundle.lbl_alterar}" action="#{crudBean.alterarSenha}" reRender="formulario"/>
		</h:panelGroup>
	</ui:define>
	
	<ui:define name="content">
		<!-- Painel de Visualizacao -->
		<h:panelGroup id="panelGroupDeVisualizacao">
			<f:subview id="viewVisualizacao">
				<table>
					<tr>
						<td class="tdCor" width="20%"><h:outputText value="#{bundle.lbl_usuario}" /> </td>
						<td class="tdBranco"><h:outputText value="#{crudBean.entity.nome}"/></td>
					</tr>
					<tr>
						<td class="tdCor"><h:outputText value="#{bundle.lbl_login}" /> </td>
						<td class="tdBranco"><h:outputText value="#{crudBean.entity.login }"/></td>
					</tr>
					<tr>
						<td class="tdCor"><h:outputText value="#{bundle.lbl_senha_atual}" /> *</td>
						<td class="tdBranco"><h:inputSecret value="#{crudBean.entity.senhaAtual}" size="30" maxlength="50"/></td>
					</tr>
					<tr>
						<td class="tdCor"><h:outputText value="#{bundle.lbl_nova_senha}" /> *</td>
						<td class="tdBranco"><h:inputSecret value="#{crudBean.entity.senha}" size="30" maxlength="50"/></td>
					</tr>
					<tr>
						<td class="tdCor"><h:outputText value="#{bundle.lbl_confirmacao_senha}" /> *</td>
						<td class="tdBranco"><h:inputSecret value="#{crudBean.entity.confirmacaoSenha}" size="30" maxlength="50"/></td>
					</tr>
				</table>
			</f:subview>
		</h:panelGroup>

	</ui:define>
	
</ui:composition>